
import Request from '../util/request'

export default class Product extends Request {

  getSet(data) {
    return this.request({
      url: '/h5/product/set',
      data
    })
  }

  // 分类 页面
  categoryPage(data) {
    return this.request({
      url: '/h5/uni/category/index',
      data
    })
  }

  // 一级分类产品
  getOneProduct(data) {
    return this.request({
      url: '/h5/category/menu-product',
      data
    })
  }

  /*-- product -------------------------------------------*/

  detail(data) {
    return this.request({
      url: '/h5/product/detail',
      data
    })
  }

  like(data) {
    return this.request({
      url: '/h5/product/like',
      data
    })
  }

  area(data) {
    return this.request({
      url: '/h5/area/list',
      data
    })
  }

  category(data) {
    return this.request({
      url: '/h5/category/product-by-category',
      data
    })
  }

  productList(data) {
    return this.request({
      url: '/h5/product/list',
      data
    })
  }
}
